/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ManageBean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.component.UIComponent;
import javax.faces.component.UIInput;
import javax.faces.context.FacesContext;
import javax.validation.ValidationException;

/**
 *
 * @author Mr-Quick
 */
@ManagedBean
@RequestScoped
public class MSSeller {

    int bedroom;
    int bathroom;
    int livingroom;
    String SquarefootageEarth;
    String SquarefootageHouse;
    String city;
    String location;
    String typehouse;
    String type = "Seller";
    String deposit;
    String introduction;
    String payment;
    public String getSquarefootageEarth() {
        return SquarefootageEarth;
    }

    public void setSquarefootageEarth(String SquarefootageEarth) {
        this.SquarefootageEarth = SquarefootageEarth;
    }

    public String getSquarefootageHouse() {
        return SquarefootageHouse;
    }

    public void setSquarefootageHouse(String SquarefootageHouse) {
        this.SquarefootageHouse = SquarefootageHouse;
    }

    public int getBathroom() {
        return bathroom;
    }

    public void setBathroom(int bathroom) {
        this.bathroom = bathroom;
    }

    public int getBedroom() {
        return bedroom;
    }

    public void setBedroom(int bedroom) {
        this.bedroom = bedroom;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDeposit() {
        return deposit;
    }

    public void setDeposit(String deposit) {
        this.deposit = deposit;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public int getLivingroom() {
        return livingroom;
    }

    public void setLivingroom(int livingroom) {
        this.livingroom = livingroom;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypehouse() {
        return typehouse;
    }

    public void setTypehouse(String typehouse) {
        this.typehouse = typehouse;
    }

    
//    public void CheckNumberRoom(
//            FacesContext context,
//            UIComponent componentToValidate,
//            Object value)
//            throws ValidationException
//    {
//        UIInput uiinput = (UIInput) componentToValidate;
//        try
//        {
//            if(bedroom <  50 || bedroom > 0 || bathroom < 50 || bathroom >0 || livingroom <50 || livingroom > 0)
//            {
//                
//            }
//        }catch(Exception ex){
//            
//        }
//    }
    public String createseller()
    {
        return "";
    }
            
}
